
public class vaca {
	
	//constructurs  

	private String nom;
	private int pes;
	private int litres;
	
	//contructor vaca
	
	public vaca(final String elnom, final int elpes, final int elslitres) {
		nom = elnom;
	    pes = elpes;
	    litres = elslitres;
	    }

	    public final int getPes() {
	        return pes;
	    }

	    public final void setPes(final int quilos) {
	        pes = quilos;
	    }

	    public final int getLitres() {
	        return litres;
	    }

	    public final void setLitres(final int llet) {
	        this.litres = llet;
	    }

	    public final String getNom() {
	        return nom;
	    }

	    public String toString() {
	        return nom;
	        //return nom + " "+ pes;
	    }

}

	
	
